import axios from '@/libs/api.request'

export const getScoreList = (seachParams) => {
  return axios.request({
    url: 'score',
    method: 'get',
    params: seachParams
  })
}

export const getScore = (id) => {
  return axios.request({
    url: 'score/' + id,
    method: 'get'
  })
};

export const addScore = (data) => {
  return axios.request({
    url: 'score',
    method: 'post',
    data: data
  })
}

export const updateScore = (id, data) => {
  return axios.request({
    url: 'score/'+id,
    method: 'put',
    data: data
  })
}

export const deleteScore = (id) => {
  return axios.request({
    url: 'score/'+id,
    method: 'delete'
  })
};
